package com.dragon.eye;

import java.awt.*;
import java.awt.event.*;

public class Aquarium extends Frame{
	
	Image aquariumImage;
	Image[] fishImages = new Image[2];
	MediaTracker tracker;
	
	Aquarium(){		
		setTitle("The Aqarium");
		addWindowListener(new WindowAdapter() {
		    public void windowClosing(WindowEvent e) {System.exit(0);}
		});
		tracker=new MediaTracker(this);
		fishImages[0] = Toolkit.getDefaultToolkit().getImage("fish1.gif");
		tracker.addImage(fishImages[0], 0);
		fishImages[1] = Toolkit.getDefaultToolkit().getImage("fish2.gif");
		tracker.addImage(fishImages[1], 0);
		aquariumImage = Toolkit.getDefaultToolkit().getImage("bubbles.gif");
		tracker.addImage(aquariumImage, 0);
		
		try {
			tracker.waitForID(0);
		} catch (InterruptedException e1) {
			e1.printStackTrace();
		}
		
		setSize(width, height)
	}

	public static void main(String[] args) {
		new Aquarium();

	}

}
